package com.study.news.pojo;

import java.sql.Timestamp;

import com.sun.xml.internal.bind.v2.model.core.ID;

public class Comment {
	private int id;
	private int newsid;
	private String content;
	private String author;
	private Timestamp commentDate;
	public int getId() {
		return id;
	}
	public void setId(int id) {
		this.id = id;
	}
	public int getNewsid() {
		return newsid;
	}
	public void setNewsid(int newsid) {
		this.newsid = newsid;
	}
	public String getContent() {
		return content;
	}
	public void setContent(String content) {
		this.content = content;
	}
	public String getAuthor() {
		return author;
	}
	public void setAuthor(String author) {
		this.author = author;
	}
	public Timestamp getCommentDate() {
		return commentDate;
	}
	public void setCommentDate(Timestamp commentDate) {
		this.commentDate = commentDate;
	}
	@Override
	public String toString() {
		return "Comment [id=" + id + ", newsid=" + newsid + ", content=" + content + ", author=" + author
				+ ", commentDate=" + commentDate + "]";
	}
	
	
	public Comment(int newsid, String content, String author) {
		super();
		this.newsid = newsid;
		this.content = content;
		this.author = author;
	}
	public Comment() {
		super();
	}
	
}
